package com.zjhcsoft.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zjhcsoft.auth.service.PasswordService;
import com.zjhcsoft.auth.dao.PasswordMapper;
import com.zjhcsoft.auth.entity.Password;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 密码表 服务实现类
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@Service
public class PasswordServiceImpl extends ServiceImpl<PasswordMapper, Password> implements
    PasswordService {

    @Override
    public Boolean passwordValidate(String password, String referencePassword) {
        //TODO..密码对比
        if(password.equals(referencePassword)){
            return true;
        }else {
            return false;
        }
    }

    @Override
    public Boolean passwordComplexityValidate(String password){
        //TODO..
        return true;
    }
}
